package com.AUI.components
{
	import flash.events.*;
	/**
	 * Toggle Button.
	 * @author HuangMinPing
	 * @site www.AminLab.com
	 */
	public class ToggleButton extends Button
	{
		/**
		 * Constructor.
		 * @param data The label of the button.
		 */
		public function ToggleButton(data:String = '')
		{
			super(data);
			
			/**************** INITCOMPLETE ****************/
			Object(this).constructor == ToggleButton && initComplete();
		}
		/**
		 * @private
		 */
		override protected function onClick(e:MouseEvent):void
		{
			checked = !checked;
		}
	}
}